BASEDIR = $(shell cd ../.. && pwd)

MODSDIR = $(BASEDIR)
LIBSDIR = $(BASEDIR)/3rdParty

CPPFLAGS = -I$(LIBSDIR)/openssl-1.0.0g/include \
           -I$(MODSDIR)/PopupLoggerDefault \
           -I$(MODSDIR)/PopupLibrary/include -g -ggdb

LDFLAGS  = -L$(LIBSDIR)/openssl-1.0.0g -lcrypto -ldl

SRCS = testsecurity.cpp \
  $(MODSDIR)/PopupLoggerDefault/src/PopupDefaultLogger.cpp

EXE = testsecurity

all: $(EXE) test

$(EXE) : $(SRCS)
	g++ $^ -o $@ $(CPPFLAGS) $(LDFLAGS)

clean:
	rm -f $(EXE) 

test: $(EXE)
	./$(EXE)
